package com.zzxx.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Rule {
    private String id;

    private Integer targettype;

    private String targetid;

    private Integer beforeday;

    private Boolean weekendcanbook;

    private Boolean holidaycanbook;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date starttime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endtime;

    private Integer ticketnum;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public Integer getTargettype() {
        return targettype;
    }

    public void setTargettype(Integer targettype) {
        this.targettype = targettype;
    }

    public String getTargetid() {
        return targetid;
    }

    public void setTargetid(String targetid) {
        this.targetid = targetid == null ? null : targetid.trim();
    }

    public Integer getBeforeday() {
        return beforeday;
    }

    public void setBeforeday(Integer beforeday) {
        this.beforeday = beforeday;
    }

    public Boolean getWeekendcanbook() {
        return weekendcanbook;
    }

    public void setWeekendcanbook(Boolean weekendcanbook) {
        this.weekendcanbook = weekendcanbook;
    }

    public Boolean getHolidaycanbook() {
        return holidaycanbook;
    }

    public void setHolidaycanbook(Boolean holidaycanbook) {
        this.holidaycanbook = holidaycanbook;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Integer getTicketnum() {
        return ticketnum;
    }

    public void setTicketnum(Integer ticketnum) {
        this.ticketnum = ticketnum;
    }
}